package by.ins;

import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;

import by.ins.app.App;
import by.ins.app.AppContext;
import by.ins.app.console.AdminConsole;

public class Main {
	Logger log = LogManager.getLogger(Main.class);

	public static void main(String[] arg) {
		
		if(arg!= null && arg.length > 0 && "console".equals(arg[0] ) ){
			
		}else{

		by.ins.app.App app = (App) AppContext.getBean("app");

		Thread appThr = new Thread(app);
		appThr.setName("App");
		appThr.start();
		AdminConsole console = (AdminConsole) AppContext.getBean("console");
		console.start();
		

		}

	}
}
